package com.shy.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * 通过配置文件context.listener.classes=com.shy.listener.MyPropertiesListener 添加监听器
 */
public class MyPropertiesListener implements ApplicationListener<ApplicationEvent> {
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println(">>>>>> MyPropertiesListener >>>>>>> : " + event);
    }
}
